package com.unitech.drinks.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务响应码和说明
 * 不同于http响应码，代表的是具体的业务错误
 */
@Getter
@AllArgsConstructor
public enum BusinessErrorCode {

    UNKNOWN_ERROR(1000, "操作失败"),

    CATEGORY_NOT_FOUND(1001, "分类不存在"),
    CATEGORY_EXISTS(1002, "同名分类已经存在");

    final int code;
    final String message;
}
